package com.ruoyi.prod.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 购买状态
 * 待采购/已采购
 *
 * @author BaiBan
 * @since 2023/2/17
 */
@Getter
@AllArgsConstructor
public enum PurchaseState {

    /**
     * 待采购
     */
    WAIT("1", "待采购"),
    /**
     * 已采购
     */
    FINISH("2", "已采购");

    @EnumValue
    private final String code;

    @JsonValue
    private final String label;
}
